home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
findfi_1
/
form6.frm
< prev
next >
Wrap
Text File
|
1998-09-14
|
3KB
|
99 lines
VERSION 5.00
Begin VB.Form Form6
BorderStyle = 1 'Fixed Single
Caption = "16 Bit Pallete"
ClientHeight = 1350
ClientLeft = 45
ClientTop = 330
ClientWidth = 3870
Icon = "Form6.frx":0000
LinkTopic = "Form6"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1350
ScaleWidth = 3870
StartUpPosition = 2 'CenterScreen
Begin VB.PictureBox ColPal
Appearance = 0 'Flat
AutoRedraw = -1 'True
AutoSize = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 1140
Left = 1560
Picture = "Form6.frx":08CA
ScaleHeight = 1110
ScaleWidth = 2145
TabIndex = 2
Top = 120
Width = 2175
End
Begin VB.OptionButton Option1
Caption = "Option1"
Height = 495
Left = 7080
TabIndex = 1
Top = 1200
Width = 1215
End
Begin VB.PictureBox Picture1
Height = 1140
Left = 120
ScaleHeight = 1080
ScaleWidth = 1155
TabIndex = 0
Top = 120
Width = 1215
End
Begin VB.Shape Shape1
FillStyle = 0 'Solid
Height = 495
Left = 6480
Top = 0
Width = 1215
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ColPal_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
On Error Resume Next
isPressed = True
If Option1.Value = True Then
Shape1.FillColor = pCol.Point(x, y)
End If
If Option1.Value = True Then Shape1.FillColor = ColPal.Point(x, y)
If Option1.Value = True Then Picture1.BackColor = ColPal.Point(x, y)
End Sub
Private Sub ColPal_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
On Error Resume Next
isPressed = True
If Option1.Value = True Then
Shape1.FillColor = pCol.Point(x, y)
End If
If Option1.Value = True Then Shape1.FillColor = ColPal.Point(x, y)
If Option1.Value = True Then Picture1.BackColor = ColPal.Point(x, y)
End Sub
Private Sub ColPal_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
On Error Resume Next
isPressed = True
If Option1.Value = True Then
Shape1.FillColor = pCol.Point(x, y)
End If
If Option1.Value = True Then Shape1.FillColor = ColPal.Point(x, y)
If Option1.Value = True Then Picture1.BackColor = ColPal.Point(x, y)
End Sub
Private Sub Form_Load()
Option1.Value = True
End Sub